package com.lanju.common;

/**
 * 参数定义
 * 
 * @author Administrator
 * 
 */
public class Contants {

	public static final String BASE_URL = "http://lanjushiye.com.cn"; // http://lanjushiye.com.cn   http://zengqd.easy.echosite.cn
	/**
	 * APPID
	 */
	public static final String APPID = "wxb3b7beee9190b2ef";// 蓝居wxb3b7beee9190b2ef
															// wxb3b7beee9190b2ef
															// 测试
															// //wx733b07f00930f0df
	/**
	 * 密钥
	 */
	public static final String APPSECRET = "1953cd3a35e559a747afeecce7437282";// 1953cd3a35e559a747afeecce7437282
																				// abc11a68191834ca6d802e3bc828b5f7
	/**
	 * 登录时使用，获取code后的回调方法
	 */
	public static final String BACK_URI = BASE_URL+ "/LanJuPublic/weixinImpl/callBack.spring";
	/**
	 * 获取access_token路径
	 */
	public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid="+ APPID + "&secret=" + APPSECRET;

	/**
	 * 请求网页的普通token
	 */
	public static final String TICKET_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid="+ APPID + "&secret=" + APPSECRET;

	/**
	 * 授权接口路径，请求获得code
	 */
	public static final String WX_AUTH_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="
			+ APPID
			+ "&redirect_uri="
			+ BACK_URI
			+ "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";

	/**
	 * 静默授权路径
	 */
	public static final String WX_BASE_AUTH_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="
			+ APPID
			+ "&redirect_uri="
			+ BACK_URI
			+ "&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";

	public static String openid = "";
	/**
	 * 普通token
	 */
	public static String ACCESS_TOKEN = "";
	/**
	 * ACCESS_TOKEN的超时时间
	 */
	public static int token_expires_in = 7200;
	/**
	 * 调用JS-SDK票据
	 */
	public static String JSAPI_TICKET = "";
	/**
	 * 获取jsapi_ticket的时间
	 */
	public static String JSAPI_TICKET_TIME = "";

	/**
	 * JS-SDK超时时间
	 */
	public static int ticket_expires_in = 7200;
	/**
	 * 随机生成的时间戳
	 */
	public static String timestamp = "";

	public static String noncestr = "";
	
	public static Integer YOUHUI_PRICE=5;
	
	public static String UPLOADFILE="/webapp/lanjufile/detail";///webapp/lanjufile/detail  这是linux的路径
	
	public static String BASESAVEFILEURL="/webapp/lanjufile/detail/";//保存在实际的路径，   /webapp/lanjufile/detail/
	
	public static String DATABASEFILEURL="/dataResourceImages/detail/";//数据保存的路径
}
